package com.longlonggo.service;

import com.longlonggo.dao.base.IBaseDao;
import com.longlonggo.dao.user.IRoleDao;
import com.longlonggo.entity.RoleEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色业务层实现类
 *
 * @author 石马人山 me@longlonggo.com
 * @version 100-000-000<br/>
 * @Created 2018年4月25日 下午8:27:27
 * </p>
 * @description <br/>
 */
@Service
public class RoleService extends BaseService {
    /**
     * 持久化层
     */
    @Autowired
    private IRoleDao roleDao;

    @Override
    protected IBaseDao getDao() {
        return roleDao;
    }


    public List<RoleEntity> queryListByUserId(int userId) {
        return roleDao.queryListByUserId(userId);
    }

}
